/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mx.its.dsw2.view;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author lesly
 */
@ManagedBean
@SessionScoped
public class AccessBean{

    
    private String user = "";
    private String pass = "";

    public AccessBean() {
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

  

    //----------ACTIONS---------
    public String procesarAcion() {
        if (user.equals("root") && pass.equals("12345")) {
            return "PrincipalMenu";
        } else {
            return "Pagina2";
        }
    }

}